Skip to content

refactor(Scans): replace task inputs any with ScanInputs type #1400#1986

Merged
utksh1 merged 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1400
Jul 9, 2026
Merged

refactor(Scans): replace task inputs any with ScanInputs type #1400#1986
utksh1 merged 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1400

Conversation

@NaitikVerma6776

Copy link
Copy Markdown
Collaborator

Summary

  • Introduces a shared ScanInputs type (Record<string, unknown>) in api.ts.
  • Replaces inputs?: any in Scans.tsx with inputs?: ScanInputs.
  • Applies ScanInputs consistently to startTask and WorkflowStep for aligned API typings.

Closes #1400

Test plan

  • npm run typecheck (frontend)
  • npm run test -- testing/unit/pages/Scans.test.tsx testing/unit/pages/ScansToastErrors.test.tsx testing/unit/pages/ScansPhases.test.tsx testing/unit/pages/Scans.polling.test.tsx (28/28 passed)
  • Rescan flow remains unchanged at runtime

Introduce a shared ScanInputs model in api.ts and use it for Scans task
inputs and startTask payloads so rescan stays type-safe.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NaitikVerma6776 NaitikVerma6776 added level:beginner 20 pts difficulty label for small beginner-friendly PRs type:refactor Refactor work category bonus label area:frontend Frontend React/UI work gssoc:approved Admin validation: approved for GSSoC scoring labels Jul 9, 2026
@utksh1 utksh1 merged commit b1d84a0 into utksh1:main Jul 9, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Frontend React/UI work gssoc:approved Admin validation: approved for GSSoC scoring level:beginner 20 pts difficulty label for small beginner-friendly PRs type:refactor Refactor work category bonus label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TYPESCRIPT] Replace Scans task inputs any with a typed scan input model

2 participants